#pragma once

#include <vector>
#include <stdlib.h>

using namespace std;

typedef vector<double> iovector;

class Utils
{
public:
	static inline int RandInt(int x,int y) 
	{
		return rand()%(y-x+1)+x;
	}

	static inline double RandFloat() 
	{
		return (rand())/(RAND_MAX+1.0);
	}

	static inline bool RandBool()
	{
		if (RandInt(0,1)) return true;
		else return false;
	}

	static inline double RandomClamped()
	{
		return RandFloat() - RandFloat();
	}

};

